package com.slz3.business.module.memberManagement.memThirdLoginInfo.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.memberManagement.memThirdLoginInfo.domain.MemThirdLoginInfo;
import com.slz3.business.module.memberManagement.memThirdLoginInfo.domain.MemThirdLoginInfoCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class MemThirdLoginInfoResAtomic {

    static Mono<ServerResponse> add_$MemThirdLoginInfoUpdateLock(ServerRequest req, MemThirdLoginInfo memThirdLoginInfo) {
        return MemThirdLoginInfoResSafeValid.add(req, memThirdLoginInfo) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                MemThirdLoginInfoResExecutor.add(req, memThirdLoginInfo);
    }

    public static Mono<ServerResponse> delete_$MemThirdLoginInfoUpdateLock(ServerRequest req, MemThirdLoginInfoCondition memThirdLoginInfoCondition) {
        return MemThirdLoginInfoResSafeValid.delete(req, memThirdLoginInfoCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                MemThirdLoginInfoResExecutor.delete(req);
    }

    static Mono<ServerResponse> modify_$MemThirdLoginInfoUpdateLock(ServerRequest req, MemThirdLoginInfo memThirdLoginInfo) {
        return MemThirdLoginInfoResSafeValid.modify(req, memThirdLoginInfo) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                MemThirdLoginInfoResExecutor.modify(req, memThirdLoginInfo);
    }

    static Mono<ServerResponse> info_$MemThirdLoginInfoUpdateLock(ServerRequest req) {
        return MemThirdLoginInfoResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                MemThirdLoginInfoResExecutor.info(req);
    }

    public static Mono<ServerResponse> auditSubmit_$MemThirdLoginInfoUpdateLock(ServerRequest req, MemThirdLoginInfoCondition memThirdLoginInfoCondition) {
        return MemThirdLoginInfoResSafeValid.auditSubmit(req, memThirdLoginInfoCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                MemThirdLoginInfoResExecutor.auditSubmit(req);
    }

    public static Mono<ServerResponse> audit_$MemThirdLoginInfoUpdateLock(ServerRequest req, MemThirdLoginInfoCondition memThirdLoginInfoCondition) {
        return MemThirdLoginInfoResSafeValid.audit(req, memThirdLoginInfoCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                MemThirdLoginInfoResExecutor.audit(req);
    }

    public static Mono<ServerResponse> auditReject_$MemThirdLoginInfoUpdateLock(ServerRequest req, MemThirdLoginInfoCondition memThirdLoginInfoCondition) {
        return MemThirdLoginInfoResSafeValid.auditReject(req, memThirdLoginInfoCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                MemThirdLoginInfoResExecutor.auditReject(req);
    }


    public static Mono<ServerResponse> usingEnable_$MemThirdLoginInfoUpdateLock(ServerRequest req, MemThirdLoginInfoCondition memThirdLoginInfoCondition) {
        return MemThirdLoginInfoResSafeValid.usingEnable(req, memThirdLoginInfoCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                MemThirdLoginInfoResExecutor.usingEnable(req);
    }

    public static Mono<ServerResponse> usingDisable_$MemThirdLoginInfoUpdateLock(ServerRequest req, MemThirdLoginInfoCondition memThirdLoginInfoCondition) {
        return MemThirdLoginInfoResSafeValid.usingDisable(req, memThirdLoginInfoCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                MemThirdLoginInfoResExecutor.usingDisable(req);
    }
}
